home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / netbsd / experimental / ypsrv-bin10.readme < prev    next >
Text File  |  1995-10-22  |  3KB  |  96 lines

  1. Descr:     1.0-binaries for a YP (NIS) server for NetBSD, includes
  2.     yppasswdd and friends.
  3.  
  4.  
  5.                Network Information Service server package
  6.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7.  
  8. This file describes mainly the installation of the package ypsrv-bin10.tar.gz,
  9. which enables your machine to run as NIS (YP) server.
  10.  
  11. The code has been taken from Linux' NYS package written by Peter Eriksson 
  12. (<pen@signum.se> or <pen@lysator.liu.se>) and modified to run with 
  13. NetBSD. Note that this is right now in an experimental state as the Linux
  14. code is based on Theo de Raadt's code which was written for NetBSD but I 
  15. couldn't get hold of Theo yet; i just needed a NIS-server *now* :-).
  16.  
  17.  
  18. Installation:
  19. ~~~~~~~~~~~~~
  20. 1. Unpacking:
  21.    # cd /
  22.    # tar plzvxf ypsrv.tar.gz
  23.    # usr/local/yppasswd-0.5/install/install.sh
  24.    # usr/local/ypserv-0.13.1/install/install.sh
  25.  
  26. 2. Create /var/yp/passwd:
  27.    This file is the equivalent of /etc/passwd with passwords stored in
  28.    there, so e.g. take your /etc/passwd and merge in the passwords from
  29.    /etc/master.passwd. 
  30.  
  31.    If you have perl5, you can do it this way (run as root!!!):
  32.    perl5 -e 'while(@x=getpwent){ print join(":",(@x)[0,1,2,3,6,7,8]),"\n"; }' \
  33.     >/var/yp/passwd
  34.  
  35.    Again, be sure to know what you do with this step. If you don't like
  36.    anyone to read your users' passwords, don't use NIS! (Or port/write
  37.    some NIS+ client/server >:)
  38.  
  39. 3. Create NIS-maps from your local files:
  40.    # cd /var/yp
  41.    # make
  42.  
  43. 4. Modify your /etc/rc.local (or whatever) to start the server-daemons
  44.    on system-startup. Add the following lines:
  45.  
  46.    ## NIS Server
  47.    if [ -f /var/yp/Makefile ]; then
  48.            if [ -f /usr/local/ypserv-0.13.1/bin/ypserv ]; then
  49.                    echo -n ' ypserv'
  50.                    /usr/local/ypserv-0.13.1/bin/ypserv
  51.            fi
  52.            if [ -f /usr/local/yppasswd-0.5/bin/rpc.yppasswdd ]; then
  53.                    echo -n ' rpc.yppasswdd' 
  54.                    /usr/local/yppasswd-0.5/bin/rpc.yppasswdd
  55.            fi
  56.    fi
  57.    
  58. 5. Set up NIS-clients
  59.  
  60.    The following steps need to be performed on any machine that wants to
  61.    use the Network Information Service, which will usually include the
  62.    NIS server. If your NIS-clients run any operating system other than
  63.    NetBSD, please consult your documentation on how to set up NIS there.
  64.  
  65.    On any NIS-client running NetBSD, do the following steps:
  66.  
  67.    1. Create a file /etc/defaultdomain which contains the name of your
  68.       NIS-domain (which has *nothing* to do with your DNS-domain which
  69.       you enter in /etc/resolv.conf!).
  70.  
  71.    2. # mkdir /var/yp 
  72.  
  73.    3. Add the following line to your /etc/*passwd (using vipw!!!):
  74.       +:*:-1:-1::0:0:,,,::
  75.  
  76. 6. Reboot server & clients
  77.  
  78. 7. Test:
  79.    * 'ypwhich' should tell you the name of your NIS-server
  80.    * 'ypcat passwd' should show you your server's /var/yp/passwd
  81.    * Try logging in as a NIS-user or finger'ing one
  82.    * Try changing a NIS-users' password, full-name or shell with
  83.      yppasswd, ypchfn or ypchsh. Please give the NIS-server a fe 
  84.      seconds to rebuilt its databases before checking!
  85.  
  86.  
  87. Have fun,
  88.  
  89.     Hubert
  90.  
  91. =============== Hubert Feyrer ============================================
  92.       Weekdays: Rennerstr. 19, D-93053 Regensburg,  Tel. 0941/943-2455
  93.       Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
  94.       Internet: hubert.feyrer@rz.uni-regensburg.de == IRC: hubertf
  95. ==========================================================================
  96.